/**
 * 汽车类
 *
 * @author ItJianGe
 * @data 2024/8/9 17:30
 */
public class Car {

    private CarDoor carDoor;
    private CarEngine carEngine;

    public Car() {
        this.carDoor = new CarDoor();
        this.carEngine = new CarEngine();
    }

    /**
     * 启动汽车
     */
    public void start() {
        carDoor.lockDoor();
        carEngine.StatEngine();
        System.out.println("出发咯！！！");
    }
}
